package com.yunxi.sell.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.ApiResult;
import com.yunxi.sell.pojo.CarSellPartnerQueryRespVO;
import com.yunxi.sell.pojo.CarSellPartnerSaveReqVO;
import com.yunxi.sell.pojo.CarSellPartnerQueryReqVO;
import com.yunxi.sell.pojo.CarSellPartnerSetAppStatusReqVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 * 车辆销售渠道管理 服务类
 * </p>
 *
 * @author 
 * @since 2019-08-21
 */
public interface CarSellPartnerDubboService {

    CarSellPartnerQueryRespVO getById(String id) throws InvocationTargetException, IllegalAccessException;

    void removeById(String id);

    PageInfo<CarSellPartnerQueryRespVO> findPageByVO(CarSellPartnerQueryReqVO carSellPartnerVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException;

    void removeByListVo(List<CarSellPartnerQueryReqVO> carSellPartnerVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException;

    List listByVo(CarSellPartnerQueryReqVO carSellPartnerVO);
    /**
     * 设置APP放行状态
     * @param vo
     * @return
     */
    boolean setAppStatus(CarSellPartnerSetAppStatusReqVO vo);

    ApiResult save(CarSellPartnerSaveReqVO carSellPartnerVO);

    ApiResult saveCas(CarSellPartnerSaveReqVO carSellPartnerVO);
}
